import biangengIcon from '../assets/image/icon/biangeng.png';
import gerenIcon from '../assets/image/icon/geren.png';
import jianchashenpiIcon from '../assets/image/icon/jianchashenpi.png';
import jianyandanjianyanIcon from '../assets/image/icon/jianyandanjianyan.png';
import pingdingleixingIcon from '../assets/image/icon/pingdingleixing.png';
import qianyishenqingIcon from '../assets/image/icon/qianyishenqing.png';
import qiyeIcon from '../assets/image/icon/qiye.png';
import productIcon from '../assets/image/icon/renzheng.png';
import tubiaomobanIcon from '../assets/image/icon/tubiaomoban.png';
import zhengshuIcon from '../assets/image/icon/zhengshu.png';

export const headerNav = [
    {
        name: '产品认证',
        key: 'product',
        path: '/product/mine/task'
    },
    // {
    //     name: '体系服务',
    //     key: 'system',
    //     path: '/system'
    // },
    // {
    //     name: '有机GAP',
    //     key: 'gap',
    //     path: '/gap'
    // },
    {
        name: '人力资源',
        key: 'hr',
        path: '/hr/registration'
    },
    {
        name: '库房数据',
        key: 'storehouse',
        path: '/storehouse/inventory'
    },
    {
        name: '合同数据',
        key: 'contract',
        path: '/contract/record'
    },
    {
        name: '财务数据',
        key: 'finance',
        path: '/finance/record'
    },
    {
        name: '快递管理',
        key: 'delivery',
        path: '/delivery/record'
    },
    {
        name: '领导数据看板',
        key: 'dashboard',
        path: '/dashboard/example'
    }
];

export const menuObj = {
    product: [
        {
          path: '/product/mine',
          title: "我的系统",
          children: [
              {
                  path: '/product/mine/task',
                  title: "我的产品审查任务",
              },
              {
                  path: '/product/mine/pwd',
                  title: "修改密码",
              },
          ],
          meta: {
              isMenu: true,
              icon: gerenIcon
          },
      },
        {
            path: '/product/certification',
            title: "产品认证概览",
            children: [
                {
                    path: '/product/certification/person',
                    title: "人员行程",
                },
                {
                    path: '/product/certification/search',
                    title: "进度查询",
                },
            ],
            meta: {
                isMenu: true,
                icon: productIcon
            },
        },
        {
            path: '/product/company',
            title: "企业管理",
            children: [
                {
                    path: '/product/company/registration',
                    title: "企业登记",
                },
                {
                    path: '/product/company/enterprise',
                    title: "企业查询",
                },
                {
                    path: '/product/company/qualification',
                    title: "资质证书到期",
                },
            ],
            meta: {
                isMenu: true,
                icon: qiyeIcon
            },
        },
        {
            path: '/product/apply',
            title: "认证受理阶段",
            children: [
                {
                    path: '/product/apply/unit',
                    title: "申请单元",
                },
                {
                    path: '/product/apply/review',
                    title: "申请评审",
    
                },
                {
                    path: '/product/apply/change',
                    title: "变更及项目",
                },
            ],
            meta: {
                isMenu: true,
                icon: qianyishenqingIcon
            },
        },
        {
            path: '/product/apply',
            title: "现场检查阶段",
            children: [
                {
                    path: '/product/arrangements/check',
                    title: "检查安排",
                },
                {
                    path: '/product/arrangements/search',
                    title: "派人查询",
    
                },
            ],
            meta: {
                isMenu: true,
                icon: jianchashenpiIcon
            },
        },
        {
            path: '/product/test',
            title: "产品检验阶段",
            children: [
                {
                    path: '/product/test/arrange',
                    title: "检验安排",
                },
                {
                    path: '/product/test/result',
                    title: "检验结果",
                },
            ],
            meta: {
                isMenu: true,
                icon: jianyandanjianyanIcon
            },
        },
        {
            path: '/product/assessManage',
            title: "复核与认证决定",
            children: [
                {
                    path: '/product/assessManage/recycle',
                    title: "产品资料回收",
                },
                {
                    path: '/product/assessManage/review',
                    title: "复核",
                },
                {
                    path: '/product/assessManage/manager',
                    title: "认证决定",
                },
            ],
            meta: {
                isMenu: true,
                icon: pingdingleixingIcon
            },
        },
        {
            path: '/product/book',
            title: "证书管理",
            children: [
                {
                    path: '/product/book/search',
                    title: "证书查询",
                },
            ],
            meta: {
                isMenu: true,
                icon: zhengshuIcon
            },
        },
        {
            path: '/product/maintain',
            title: "企业维护",
            children: [
                {
                    path: '/product/maintain/system',
                    title: "项目维护",
                },
            ],
            meta: {
                isMenu: true,
                icon: tubiaomobanIcon
            },
        },
        {
            path: '/product/changeMange',
            title: "变更管理",
            children: [
                {
                    path: '/product/changeMange/system',
                    title: "产品证书变更",
    
                    meta: {
                        icon: 'el-icon-timer'
                    },
                },
                {
                    path: '/product/changeMange/search',
                    title: "产品证书变更查询",
                }
            ],
            meta: {
                isMenu: true,
                icon: biangengIcon
            },
        }
    ],
    delivery: [
        {
            title: "快递管理",
            path: '/delivery/record',
            children: [
                {
                    path: '/delivery/record',
                    title: "快递登记",
                },
                {
                    path: '/delivery/search',
                    title: "快递查询",
                },
            ],
            meta: {
                isMenu: true,
                icon: productIcon
            },
        },
    ],
    hr: [
        {
            title: "人力资源",
            path: '/hr/registration',
            children: [
                {
                    path: '/hr/registration',
                    title: "人员登记",
                },
                {
                    path: '/hr/query',
                    title: "人员查询",
                },
                {
                    path: '/hr/qualification',
                    title: "注册资格登记",
                },
                {
                    path: '/hr/qualification/query',
                    title: "注册资格查询",
                },
                {
                    path: '/hr/business',
                    title: "业务代码登记",
                },
                {
                    path: '/hr/business/query',
                    title: "业务代码查询",
                },
                {
                    path: '/hr/experience',
                    title: "人员专业经历",
                },
                {
                    path: '/hr/annual',
                    title: "资格年度确认",
                },
                {
                    path: '/hr/absence',
                    title: "请假登记",
                },
                {
                    path: '/hr/absence/query',
                    title: "请假查询",
                },
                {
                    path: '/hr/train',
                    title: "培训登记",
                },
                {
                    path: '/hr/train/query',
                    title: "培训查询",
                },
            ],
            meta: {
                isMenu: true,
                icon: productIcon
            },
        },
    ],
    contract: [
        {
            title: "合同数据",
            path: '/contract/record',
            children: [
                {
                    path: '/contract/record',
                    title: "合同登记",
                },
                {
                    path: '/contract/search',
                    title: "合同查询",
                },
            ],
            meta: {
                isMenu: true,
                icon: productIcon
            },
        },
    ],
    finance: [
        {
            title: "财务数据",
            path: '/finance/record',
            children: [
                {
                    path: '/finance/record',
                    title: "财务登记",
                },
                {
                    path: '/finance/search',
                    title: "财务查询",
                },
            ],
            meta: {
                isMenu: true,
                icon: productIcon
            },
        },
    ],
    storehouse: [
        {
            title: "库房管理",
            path: '/storehouse/inventory',
            children: [
                {
                    path: '/storehouse/inventory',
                    title: "库存盘点",
                },
                {
                    path: '/storehouse/inbound',
                    title: "入库查询",
                },
                {
                    path: '/storehouse/outbound',
                    title: "出库查询",
                },
            ],
            meta: {
                isMenu: true,
                icon: productIcon
            },
        },
    ],
    dashboard: [
        {
            title: "领导数据看板",
            path: '/dashboard/inventory',
            children: [
                {
                    path: '/dashboard/example',
                    title: "样品数据统计",
                },
                {
                    path: '/dashboard/customer',
                    title: "客户分布",
                },
                {
                    path: '/dashboard/income',
                    title: "与去年收入对比",
                },
                {
                    path: '/dashboard/important',
                    title: "重要客户名单",
                },
            ],
            meta: {
                isMenu: true,
                icon: productIcon
            },
        },
    ]
};